package com.hxzy.mapper.system;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hxzy.dto.system.SysUserDTO;
import com.hxzy.entity.system.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Administrator
 */
@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {

    /**
     * 根据账户查询用户
     * @param account
     * @return
     */
    SysUser findByAccount(String account);

    /**
     * 分页查询
     * @param sysUserDTO
     * @return
     */
    List<SysUser> search( @Param(value = "dto") SysUserDTO sysUserDTO);
}